
package Migue;

import java.util.Scanner;

public class FormulaGeneral {
 public static void main(String[] args) {
     Scanner scan= new Scanner(System.in);
     System.out.print("A: ");
       int a=scan.nextInt();
       System.out.print("B: ");
     int b=scan.nextInt();
     System.out.print("C: ");
     int c=scan.nextInt();
       double r= (-b + (Math.sqrt(Math.pow(b, 2) - (4*a*c))))/2*a;
       double r1=(-b - (Math.sqrt(Math.pow(b, 2) - (4*a*c))))/2*a;
        System.out.println("+: "+r);
        System.out.println("-: "+r1);
    }
}
